﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace RiskMan.Views.Robot
{
    /// <summary>
    /// Interaction logic for SovetnikLog.xaml
    /// </summary>
    public partial class SovetnikLog
    {
        public SovetnikLog()
        {
            InitializeComponent();
        }

        #region singleton
        protected static Object _lock = new Object();
        protected static SovetnikLog _instance;

        public static SovetnikLog Instance
        {
            get
            {
                lock (_lock)
                {
                    if (null == _instance)
                        _instance = new SovetnikLog();
                    return _instance;
                }
            }
        }
        #endregion


        public void Log(string mess)
        {
            lsbxRobotLog.Items.Add(mess);
        }
    }
}
